#!/bin/bash
source src/conf/config.conf

cd $tftp_dir
echo " Downloading Partition Magic ..."

wget -q -c  logos/pmagic.tar.gz

#wget -c  http://pxe.sytes.net/pmagic.tar.gz

mkdir -p pmagic
tar -xzvf pmagic.tar.gz -C pmagic/
mv pmagic/ tools/
mkdir -p tars
mv pmagic.tar.gz tars/
 
cat >> pxelinux.cfg/tools << EOF

    label Partition Magic
    menu label Partition Magic
    kernel tools/pmagic/bzImage
    append tools/pmagic/initrd.img

	TEXT HELP
	Install Partition Magic
	ENDTEXT


EOF

